$(function () {
    var seleteTCValue = $('#tcNameValue').val();
    if (seleteTCValue != "") {
        $("#updateTcName option[value='" + seleteTCValue + "']").attr("selected", "selected");
    };
    updateTcName = function () {
        var updateTcName = $("#updateTcName").val();
        var customerId = $("#customerId").val();
        $.ajax({
            url: Feng.ctxPath + "/recharge/updateTcName",
            type: "post",
            data: {
                "customerId": customerId,
                "updateTcName": updateTcName
            },
            success: function (data) {
                Feng.success(" 修改Tc成功！");
                parent.window.location.reload();
                parent.layer.close(parent.layer.getFrameIndex(window.name))
            },
            error: function (data) {
                alert('没有权限，请联系管理员!');
            }
        });
    };
});